package main

import (
	"encoding/json"
	"fmt"
)

type appInfo struct {
	AppId string `json:"app_id"`
}
type response struct {
	RespCode string  `json:"resp_code"`
	ResMsg   string  `json:"res_msg"`
	AppInfo  appInfo `json:"app_info"`
}
type JsonResult struct {
	Resp response `json:"resp"`
}

func main() {
	jsonstr := `{"resp":{"resp_code":"000000","res_msg":"sucess","app_info":{"app_id":"135451531"}}}`
	var JsonRes JsonResult
	json.Unmarshal([]byte(jsonstr), &JsonRes)
	fmt.Printf("%v", JsonRes)
	fmt.Println(JsonRes)
}
